package org.jeecg.modules.appuser.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.appuser.entity.TbUserIntegral;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @Description: 用户积分表
 * @Author: jeecg-boot
 * @Date:   2020-05-19
 * @Version: V1.0
 */
public interface ITbUserIntegralService extends IService<TbUserIntegral> {


    TbUserIntegral getOneByUserId(String user_id);

    Result<?> integralExchangeBizHours(String user_id, BigDecimal integral);

    Result<?> showSignInDatabyWeek(String user_id);

    Map doActionTask(String user_id, String taskName);

    Result<?> buyIntegral(String user_id,String integral_exchange_id,Double price, int num, String return_url);

    Result<?> returnPay(String trade_order_id, BigDecimal total_fee, String trade_order_id1, String status, String appid);

    Result<?> integralUpgradeAgent(String user_id);
}
